/**
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
*/
import request from '@/utils/request';

// 查询接口
export function getDataServicesList(data) {
  return request({
    url: `/isfd/server/query`,
    method: 'post',
    data
  });
}
// 创建接口
export function createDataServices(data) {
  return request({
    url: `/isfd/server/add`,
    method: 'post',
    data
  });
}
// 更新接口
export function updateDataServices(data) {
  return request({
    url: `/isfd/server/update`,
    method: 'post',
    data
  });
}
// 删除接口
export function deleteDataServices(id) {
  return request({
    url: `/isfd/server/delete/${id}`,
    method: 'delete'
  });
}
// 发布接口
export function publishDataServices(params) {
  return request({
    url: `/isfd/server/publish/${params.id}`,
    method: 'post'
  });
}
// 撤销接口
export function revokeDataServices(params) {
  return request({
    url: `/isfd/server/revoke/${params.id}`,
    method: 'post'
  });
}
// 查询调用记录接口
export function dataServicesHistoryList(data) {
  return request({
    url: `/isfd/server/history/list`,
    method: 'post',
    data
  });
}

// 查询服务所有历史记录数据详情
export function dataServicesDataList(data) {
  return request({
    url: `/isfd/server/history/data/all`,
    method: 'post',
    data
  });
}

// 服务历史数据查询
export function dataServicesHistoryDataList(data) {
  return request({
    url: `/isfd/server/history/data/list`,
    method: 'post',
    data
  });
}
